<!doctype html>
<html>
<head>
<meta charset="utf-8">
<uu:questionview listname="q" id="$_GET['id']"/> 
<title>{:SEO('question-view','title',array('QUESTION_TITLE'=>$q['title']))}</title>
<meta name="keywords" content="{:SEO('question-view','keywords',array('QUESTION_TITLE'=>$q['title']))}">
<meta name="description" content="{:SEO('question-view','description',array('QUESTION_TITLE'=>$q['title'],'DESCRIBE'=>$q['describe']))}">
<link href="__ROOT__/{:C('UU_TPL_DIR')}/public/css/question.css" rel="stylesheet" type="text/css">
<include file="public:header" />

<div class="qshow">
  <div class="cmain">
    <div class="box1">
	
      <div class="title">
	  <h1>{$q.title}</h1>
	  
	  <div class="follow">
	  <eq name="Think.session.uu.uid" value=""><!--未登录 -->
	  
	   <div class="fbtns J_user_login">已关注</div>
	   <div class="followtxt"><strong class="J_follow_count">{$q.follow_count}</strong>关注</div>
	   <div class="clear"></div>
	   <div class="fbtns w J_user_login">收藏</div>
	   <div class="followtxt"><strong class="J_favorites_count">{$q.favorites_count}</strong>收藏</div>
		<div class="clear"></div>
		
		
	 	<else/><!--已登录 -->
		
		<eq name="q.is_follow" value="1">
	    <div class="fbtns J_follow" qid="{$q.id}">已关注</div>
		<else/>
		<div class="fbtns J_follow" qid="{$q.id}">关注</div>
		</eq>
		<div class="followtxt"><strong class="J_follow_count">{$q.follow_count}</strong>关注</div>
		<div class="clear"></div>
		<eq name="q.is_favorites" value="1">
	   	<div class="fbtns w J_favorites" qid="{$q.id}">已收藏</div>
		<else/>
		<div class="fbtns w J_favorites" qid="{$q.id}">收藏</div>
		</eq>
		<div class="followtxt"><strong class="J_favorites_count">{$q.favorites_count}</strong>收藏</div>
		<div class="clear"></div>
		
		
		</eq>
	  	
	  </div>
	  <div class="userinfo link_gray3">
	  	
		<a href="{$q.userurl}">{$q.username}</a> <span>|</span>{$q.addtime_str}<span>|</span> 浏览<u>{$q.click}</u>次
		
		<notempty name="q.tag"><span>|</span><strong class="tag"></notempty>
		<volist name="q.tag" id="vo">
		<a href="{$vo.tagurl}" >{$vo.tag}</a>
		</volist>
		<notempty name="q.tag"></strong></notempty>
	 
		</div>
		
	  </div>  
   	  
		<if condition="(($q.reward gt 0) OR ($q.sys_reply_gold gt 0)) AND $q['issolve']=='0' "> 
		
        <div class="qtip">
		你的回答被采纳后将获得：
		<if condition="$q.sys_reply_gold gt 0 ">
		系统奖励 <span class="gold">+{$q.sys_reply_gold}</span>{:C('UU_GOLD_BYNAME')}<notempty name="q.sys_reply_exp">（经验值+{$q.sys_reply_exp}）</notempty>
		
		</if>
		<if condition="($q.reward gt 0) AND ($q.sys_reply_gold gt 0) "> <strong> + </strong>	</if>
		<if condition="$q.reward gt 0 ">
		提问者悬赏<span class="gold">+{$q.reward}</span>{:C('UU_GOLD_BYNAME')}
		</if>
		</div>
		
		</if>
		
		
        <div class="txt">{$q.describe}</div>
		<!-- 图片-->
		<notempty name="q.img">
		<div class="qimgbox">
			<volist name="q.img" id="v">
		  	<div class="imgli"><a href="{$v.imgurl}"><img src="{$v.thumb_imgurl}"   border="0"></a></div>
			</volist>
			<div class="clear"></div>
		</div>
		</notempty>
	  <!-- 显示补充提问-->
		<volist name="q.supp" id="supp">
						<div class="askedlist">
							 <div class="tn"> 补充：	</div>
							 <div class="infobox">
								 <div class="info">{$supp.content}</div>
								 <div class="clear"></div>
								 <div class="arrows"></div>
							 </div>
							 <div class="clear"></div>
					   </div>
      </volist>
		<!-- 自己发布的显示补充提问和追加悬赏-->
		 <if condition="($q.uid eq $user['uid']) AND ($q['issolve']=='0')"><!--假如是自己发布的 -->
				    <div class="btns">
			   		 <div class="supp J_supp_show">补充提问</div>
					 <div class="supp gold J_supp_gold_show">追加悬赏</div>
					 <div class="clear"></div>
	    			</div>
		
		<!--显示补充问题提交框 -->
		<div class="suppinputbox">
						   <div class="arrow"></div>
			     			 <textarea name="content" cols="" qid="{$q.id}" rows="" class="input J_supp_input"  placeholder="点此补充您的问题，温馨提示：请勿包含有QQ号、邮箱地址、电话等个人敏感信息！" ></textarea>
							<div class="askedbtn">
							<input type="button" class="btn_green btn_inline btn_border J_supp_btn" value="补充提问">
							</div>
	    </div>
		<!--显示追加悬赏 -->
		<div class="suppgold">
			<div class="arrow"></div>
		    <div class="goldbox">
			  <div class="sti">追加悬赏，能吸引更多的回答者，获得更优质的答案。</div>
			  <div class="sel">
			      <label <if condition="$user.gold lt 5 ">class="disabled"</if>><input  checked  name="suppgold" type="radio" value="5"  <if condition="$user.gold lt 5 ">disabled="disabled"</if>>5{:C('UU_GOLD_BYNAME')}</label>
				  <label <if condition="$user.gold lt 10 ">class="disabled"</if>><input type="radio" name="suppgold" value="10" <if condition="$user.gold lt 10 ">disabled="disabled"</if>>10{:C('UU_GOLD_BYNAME')}</label>
				  <label <if condition="$user.gold lt 20 ">class="disabled"</if>><input type="radio" name="suppgold" value="20" <if condition="$user.gold lt 20 ">disabled="disabled"</if>>20{:C('UU_GOLD_BYNAME')}</label>
				  <label <if condition="$user.gold lt 50 ">class="disabled"</if>><input type="radio" name="suppgold" value="50" <if condition="$user.gold lt 50 ">disabled="disabled"</if>>50{:C('UU_GOLD_BYNAME')}</label>
				  <label <if condition="$user.gold lt 100 ">class="disabled"</if>><input type="radio" name="suppgold" value="100" <if condition="$user.gold lt 100 ">disabled="disabled"</if>>100{:C('UU_GOLD_BYNAME')}</label>
			  </div>
			  
				  <div class="suppbtn">
				  <input type="button" class="btn_green btn_inline btn_border" id="J_supp_gold" value="追加悬赏">
				  </div>
				  <div class="btnsrighttxt">您当前有<span class="sgold">{$user.gold}</span>{:C('UU_GOLD_BYNAME')}</div>
				  <div class="clear"></div>
		    </div>
		</div>
		<!--显示追加悬赏 end-->
		
		
		</if>
		<!-- 不是自己发布的，并且没有回答过-->
		<if condition="($q.uid neq $user.uid ) AND ($q.is_reply neq '1' ) AND ($q['issolve']=='0')">
        <div class="reply">
		
		  <div class="re1">
				<div class="userimg">
				<if condition="$user.avatar eq '' ">
				<img src="__ROOT__/{:C('UU_IMG_AVATAR_DIR')}avatar.jpg" />
				<else />
				<img src="{$user.avatar}" />
				</if>
				</div>
				<div class="rtit">我来回答</div>
		  </div>
		  <form action="{:RU('question/replysave')}" method="post" name="replysave">
		  <input name="qid" type="hidden" value="{$q.id}">
		  <div class="re2">
		  		<textarea name="content" cols="" rows="" class="reptxt <if condition="$user.uid eq ''">J_user_login</if>" id="J_reply_input" placeholder="这里输入你的回答内容"></textarea>
		  </div>
		   <div class="clear"></div>

		   <div class="replybtns">
		     <div class="topti">还可输入<span id="repcount">1000</span>字</div>
		     <div class="rbtn">
			 <input type="button" class="btn_green btn_inline btn_border" id="J_save_reply" value="提交回答">
			 </div>
		   </div>
	      </form>
		   
        </div>
		</if>
		
		
    </div>
	
	
	
	<!--已经回答过(登录中) -->
	<if condition="$q.is_reply eq '1'">
	
	
	<div class="box2 bopadding">
	
		<h3 class="title">我的回答</h3>
		
		
	<!-- -->	
	  <div class="reply noborder">
	  
	    <if condition="$q.my_reply.optimal eq 1"><div class="optimal"></div></if>		  
	    <div class="pic">
				  <img src="{$user.avatar}" />
		  </div>
				  <div class="uname">
				  	<div class="t1 link_blue">
					<span class="userLV">LV{$user.exp_lv}</span>
					<a href="{$user.user_url}">{$user.username}</a>
					&nbsp;&nbsp;采纳率：<span class="acc_rate">{$user.acc_rate}%</span>
					</div>
				  </div>
				   <div class="clear"></div>
				   <div class="time">{$q.my_reply.addtime_str}</div>
				   
		           
		           <div class="rtxt">{$q.my_reply.content}</div>
				   
				   
				     <!--显示追问追答 -->
					<volist name="q.my_reply.asked" id="askedli">
						<div class="askedlist type{$askedli.type}">
							 <div class="tn">
							 <if condition="$askedli.type eq '1'">
							 追答：
							<else />
							 追问：
							 </if>
							 </div>
							 <div class="infobox">
								 <div class="info">{$askedli.content}</div>
								 <div class="clear"></div>
								 <div class="arrows"></div>
							 </div>
							 <div class="clear"></div>
						
					   </div>
				   </volist>
 
				   
				   <!--下方按钮 -->
				    <if condition="$q.issolve eq '0'">
				 
		           <div class="btns">
					 <div class="asked J_show_asked">追答</div>
					 <div class="clear"></div>
				   </div>

				<div class="inputbox">
						   <div class="arrow my"></div>
			     			 <textarea name="content" cols=""   type="1" rid="{$q.my_reply.id}" rows="" class="input J_asked_input"  placeholder="这里填写内容" ></textarea>
							<div class="askedbtn">
							 <input type="button" class="btn_green btn_inline btn_border J_reply_asked_btn"  value="提交追答">
							</div>
	    </div>
		
		 </if>
		 
		 
		 
		 
	  </div>
		
		
		<!-- -->
		
		 

	</div>
	</if>
	
	
	
	
	
	<uu:answer listname="li" qid="$_GET['id']"/>
	<notempty  name="li.list">
 

    <div class="box2">
	
		<h3 class="title">{$li.count}条回答</h3>
		
		
	<!-- -->
	<volist name="li.list" id="rli">
	 
	 
	  <div class="reply">
	  				 <if condition="$rli.optimal eq 1">
					 <div class="optimal"></div>
					 </if>		
				<div class="pic">
				  <img src="{$rli.user.avatar}" />
				  </div>
				  <div class="uname">
				  	<div class="t1 link_blue">
					<span class="userLV">LV{$rli.user.exp_lv}</span>
					<a href="{$rli.user.user_url}">{$rli.user.username}</a>
					&nbsp;&nbsp;采纳率：<span class="acc_rate">{$rli.user.acc_rate}%</span>
					</div>
				  </div>
				   <div class="clear"></div>
				   <div class="time">{$rli.addtime_str}</div>
				   <div class="praise J_praise" rid="{$rli.id}" qid="{$q.id}" answeruid="{$rli.uid}">{$rli.praise}</div>
				   
		           <!--回复内容 -->
		           <div class="rtxt">
				   {$rli.content}
				   </div>
				    <!-- 追问和追答 -->
				   <volist name="rli.asked" id="ali">
				  
				   <div class="askedlist type{$ali.type}">
						 <div class="tn">
						 <if condition="$ali.type eq '1'">
							 追答：
							<else />
							 追问：
							 </if>
						 </div>
						 <div class="infobox">
							 <div class="info">{$ali.content}</div>
							 <div class="clear"></div>
							 <div class="arrows"></div>
						 </div>
						 <div class="clear"></div>
					
				   </div>
				   </volist>
				   <!-- 追问追答结束-->
				   
				   <if condition="($q.uid eq $user['uid']) AND  ($q['issolve']=='0')"><!--假如是自己发布的 -->
				    <div class="btns">
			   		  
					 <input name="" type="button"  class="adoption J_adoption" rid="{$rli.id}" qid="{$q.id}" value="采纳为满意答案">
					 <div class="asked J_show_asked">追问</div>
					 <div class="clear"></div>
	    			</div>

				<div class="inputbox">
					<div class="arrow"></div>
			   <textarea name="content" cols=""   type="2" rid="{$rli.id}" rows="" class="input J_asked_input"  placeholder="这里填写内容" ></textarea>
					<div class="askedbtn">
					 <input type="button" class="btn_green btn_inline btn_border J_reply_asked_btn"  value="提交追问">
					</div>
	   			 </div>
				 
				 
				 </if>
		
		
	  </div>
				 
		
	</volist>
		<!-- -->

	</div>
	
 
</notempty>
	
	<!--等待回答 -->
	<div class="box3">
	  	<div class="title">等你回答</div>
		
		<!-- -->
<uu:question listname="question" category1="$q['category1']" type="1" num="5"/> 
<volist name="question.list" id="li">
	    <div class="qll">
		  	<div class="qtd1"></div>
			<div class="qtd2">
				 <img src="{$li.avatar}" />
			</div>
		  <div class="qtd3 link_gray3">
				  <h4>
					<notempty name="li.reward"><span class="reward">{$li.reward}</span></notempty>
					<a href="{$li.url}">{$li.title}</a>
				  </h4>
					<div class="author link_gray3">
							 <if condition="$li.answeruid gt 0 ">
							 <a href="{$li.aurl}"  target="_blank">{$li.aname}</a> <span> 回复于 {$li.answertimestr}</span> 
							 <else />
							  <a href="{$li.uurl}" target="_blank">{$li.uname}</a><span> 发布于 {$li.addtimestr}</span> 
							 </if>
					</div>
					 <notempty name="li.tags">
				  <span class="tag">
				 
					<volist name="li.tags" id="tagsli">
							 <a   href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
					  </volist> 
					 
				</span>
				 </notempty> 
					<div class="rcount">{$li.answercount} 回答</div>
			</div>
			<div class="clear"></div>
		</div>
		<!-- -->
</volist>

<empty name="question.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>
		
</div>
	
	
</div>
  <div class="rar">
		<if condition="(C('UU_SMS_OPEN') eq '1') OR ($Think.session.uu.uid Neq '')">
		<a class="btn" href="{:RU('question/add')}">我要提问</a>
        <a class="btn share" href="{:RU('article/add')}">分享经验</a>
	<else />
		<a class="btn J_user_login" href="javascript:void(0);">我要提问</a>
        <a class="btn share J_user_login" href="javascript:void(0);">分享经验</a>
	</if>
		
		<div class="tagbox">
          <div class="tit">热门标签</div>
          <div class="more link_gray6"><a href="{:RU('tag/lists')}">更多></a></div>
                      <div class="clear"></div>
          			 <uu:tag listname="tags"  page="0" sort="hot" num="40"/>
					 <volist name="tags.list" id="tli">
          			 <a class="tag" href="{$tli.url}">{$tli.tag}<span>({$tli.count_question})</span></a>
					 </volist>
                      <div class="clear"></div>
        </div>
        
   <!-- <div class="ranking">
                     <div class="tit">排行榜</div>
                      <div class="more link_gray6"><a href="#" class="select">今天</a><span>·</span><a href="#">本周</a><span>·</span><a href="#">更多</a></div>
      					<div class="clear"></div>
                      
     					<div class="list">
                          <div class="td1">1.</div>
                          <div class="td2"><img src="http://askimg.39.net/doctor/20110829/220867.jpg" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">1.</div>
                          <div class="td2"><img src="http://askimg.39.net/doctor/20110829/220867.jpg" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">1.</div>
                          <div class="td2"><img src="__ROOT__/{:C('UU_TPL_DIR')}/public/images/06.png" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">2.</div>
                          <div class="td2"><img src="http://askimg.39.net/doctor/20110829/220867.jpg" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">4.</div>
                          <div class="td2"><img src="__ROOT__/{:C('UU_TPL_DIR')}/public/images/06.png" /></div>
                          <div class="td3 link_orange"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">11.</div>
                          <div class="td2"><img src="__ROOT__/{:C('UU_TPL_DIR')}/public/images/06.png" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
                        <div class="list">
                          <div class="td1">10.</div>
                          <div class="td2"><img src="__ROOT__/{:C('UU_TPL_DIR')}/public/images/06.png" /></div>
                          <div class="td3 link_gray6"><a href="#">imzwf</a></div>
                          <div class="td4">+10</div>
                          <div class="clear"></div>
                        </div>
    </div> -->
		
	 
  </div>
  <div class="clear"></div>
  
</div>

<script type="text/javascript">
	var uploadUrl = "{:RU('Upload/attach')}";
</script>
<include file="public:footer" />
<script type="text/javascript">
$(document).ready(function()
{
//回答表单增加高度
$('#J_reply_input').live('click',function() {
	 	h=$(this).height();
		if (h==150)
		{
		$(this).animate({ height: "55px"}, 500 );	
		}
		else
		{
		$(this).animate({ height: "150px"}, 500 );
		}
	});
//追问（补充）表单增加高度
$('.J_asked_input,.J_supp_input').live('click',function() {
	 	h=$(this).height();
		if (h==100)
		{
		$(this).animate({ height: "22px"}, 500 );	
		}
		else
		{
		$(this).animate({ height: "100px"}, 500 );
		}
});
//显示追问表单
$(".J_show_asked").click( function () {
 	$(this).parent().next().toggle();
});
//提交回复
$("#J_save_reply").click( function () {
	reply=$('#J_reply_input').val();
	if (reply.length<=3){
		disapperTooltip("remind","请详细输入回答内容，3个字符以上！");
	}
	else
	{
		$('form[name=replysave]').submit();
	}
 	
});

//提交追问和追答
$(".J_reply_asked_btn").click( function () {
	$(this).addClass('btn_disabled').attr("disabled","disabled");
	var askedURL="{:RU('question/ajax_reply_asked')}";
	reply_textarea=$(this).parent().prev('textarea');
	type=reply_textarea.attr('type');
	rid=reply_textarea.attr('rid');
	content=reply_textarea.val();
	if (content.length==0)
	{
		disapperTooltip("remind","请填写内容！");
		$(this).removeClass('btn_disabled').removeAttr("disabled");
		return false;
	}
	$.getJSON(askedURL, {type:type,rid:rid,content:content}, function(json){
					
					if (json.status==0){
						disapperTooltip("remind", json.content);
						$(this).removeClass('btn_disabled').removeAttr("disabled");
					}else if (json.status==1){
						disapperTooltip("success",json.content);
						setTimeout(function () { 
							window.location.reload();
						}, 2000);
					}else{
						disapperTooltip("remind","未知错误");
						$(this).removeClass('btn_disabled').removeAttr("disabled");
					}
	});

});
//补充提问提交
$(".J_supp_btn").click( function () {
//$(this).val('提交问题').removeAttr("disabled");
//$(this).removeClass('btn_disabled');
	$(this).attr("disabled","disabled").addClass('btn_disabled');
	var suppURL="{:RU('question/ajax_question_supp')}";
	supp_textarea=$(this).parent().prev('textarea');
	qid=supp_textarea.attr('qid');
	content=supp_textarea.val();
	if (content.length==0)
	{
		disapperTooltip("remind","请填写内容！");
		$(this).removeAttr("disabled").removeClass('btn_disabled');
		return false;
	}
	
	$.getJSON(suppURL, {qid:qid,content:content}, function(json){
					
					if (json.status==0){
						disapperTooltip("remind", json.content);
						//
						$(this).removeAttr("disabled").removeClass('btn_disabled');
						//
					}else if (json.status==1){
						disapperTooltip("success",json.content);
						setTimeout(function () { 
							window.location.reload();
						}, 1500);
					}else{
						disapperTooltip("remind","未知错误");
						//
						$(this).removeAttr("disabled").removeClass('btn_disabled');
						//
					}
	});

});
//点赞
$(".J_praise").click( function () {
	var praURL="{:RU('question/ajax_inc_praise')}";
	praise=$(this);
	rid=praise.attr('rid');
	qid=praise.attr('qid');
	answeruid=praise.attr('answeruid');
	$.getJSON(praURL, {rid:rid,answeruid:answeruid,qid:qid}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
						praise.html(json.content);
						disapperTooltip("success",'感谢你点赞！');
					}else{
						disapperTooltip("remind","未知错误");
					}
	});

});
//展开补充问题按钮
$(".J_supp_show").click( function () {
	$('.suppinputbox').toggle();
	$('.suppgold').hide();
});
//展开追加悬赏按钮
$(".J_supp_gold_show").click( function () {
	$('.suppgold').toggle();
	$('.suppinputbox').hide();
});
//追加悬赏操作
$("#J_supp_gold").click( function () {
	var apraURL="{:RU('question/ajax_supp_gold')}";
	var usergold=Number("{$user.gold}");
	var qid=Number("{$q.id}");
	var gold=$('input[name=suppgold]:checked').val();
	if (gold>usergold)
	{
	disapperTooltip("remind","你的{:C('UU_GOLD_BYNAME')}不够用了，平时多攒点呀～");
	return false;
	}
	$(this).attr("disabled","disabled").addClass('btn_disabled');
	$.getJSON(apraURL, {qid:qid,gold:gold}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
						$(this).removeAttr("disabled").removeClass('btn_disabled');
					}else if (json.status==1){
						disapperTooltip("success",json.content);
						setTimeout(function () { 
							window.location.reload();
						}, 1800);
					}else{
						disapperTooltip("remind","未知错误");
						$(this).removeAttr("disabled").removeClass('btn_disabled');
					}
	});

});
//采纳答案
$(".J_adoption").click( function () {
	var ajaxURL="{:RU('question/ajax_adoption_reply')}";
	var rid=$(this).attr('rid');
	var qid=$(this).attr('qid');
	$(this).attr("disabled","disabled").addClass('disabled');
	$.getJSON(ajaxURL, {rid:rid,qid:qid}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
						$(this).removeAttr("disabled").removeClass('disabled');
					}else if (json.status==1){
						var LoginDialog = $(this).dialog({
								title: false,
								content:json.content,
								footer: false,
								header: false,
								border: false,
								innerPadding: false,
								backdrop: true,
								bgTransparent: true
						});
						
					}else{
						disapperTooltip("remind","未知错误");
						$(this).removeAttr("disabled").removeClass('disabled');
					}
	});

});
//加关注
$('.J_follow').live('click',function() {
		btn=$(this);
		qid=btn.attr('qid');
		 $.getJSON(ajaxURL, { act: "ajax_question_follow",qid:qid}, function(json){
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
					disapperTooltip("success", json.content);
					if (btn.text()=='已关注')	{
					btn.text('关注');
					}else{
					btn.text('已关注');
					}					
					$('.J_follow_count').text(json.count);
					}else{
						disapperTooltip("remind","未知错误");
					}
		});
});
//加收藏
$('.J_favorites').live('click',function() {
		btn=$(this);
		qid=btn.attr('qid');
		type=1;
		 $.getJSON(ajaxURL, { act: "ajax_favorites",qid:qid,type:type}, function(json){
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
					disapperTooltip("success", json.content);
					if (btn.text()=='已收藏')	{
					btn.text('收藏');
					}else{
					btn.text('已收藏');
					}					
					$('.J_favorites_count').text(json.count);
					}else{
						disapperTooltip("remind","未知错误");
					}
		});
});

});
</script>
</body>
</html>